const router = require('koa-router')()

router.get('/list', async(ctx, next) => {
    await ctx.render('list', {
        text: '这个是list页面'
    })
})

router.get('/list/:id', async(ctx, next) => {
    
    await ctx.render('list', {
        text: '这个是list页面' + ctx.state.G.url + (ctx.query.from || ''),
        id: ctx.params.id
    })
})

module.exports = router
